package com.lintntu.pojo;

import androidx.annotation.Nullable;

import java.util.Objects;

public class Result {
    private Integer result;
    private String msg;
    private Integer ret_code;


    public Result() {

    }

    public Result(Integer result, String msg, Integer ret_code) {
        this.result = result;
        this.msg = msg;
        this.ret_code = ret_code;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getRet_code() {
        return ret_code;
    }

    public void setRet_code(Integer ret_code) {
        this.ret_code = ret_code;
    }

    @Override
    public String toString() {
        if (msg.equals("")){
            return "登录失败";
        }
        return msg;
    }
}
